<%@ page import="java.util.*,
                 com.actimind.actitime.util.*,
                 com.actimind.actitime.beans.*,
                 com.actimind.actitime.*,
                 org.apache.struts.util.ResponseUtils"%>
<%@ page errorPage="/error.jsp" %>
<%@ taglib uri="/WEB-INF/at.tld" prefix="at"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<bean:define id="comments" scope="request" name="<%=Keys.TIME_TRACK_COMMENTS%>" type="java.util.List"/>
<bean:define id="user" name="<%=Keys.REPORT_COMMENTS_USER_ID%>" type="com.actimind.actitime.beans.UserBean"/>

<html>
<head>
    <title><bean:write name="title-prefix" scope="application"/> Comments Made by <%=user.getFullName()%></title>
    <link rel="stylesheet" href="../css/at.css" type="text/css">
    <style type="text/css">
    .commentrow
    {
        background-color:#e8e8e8;
        font-family:Arial, Helvetica;
        font-size:9pt;
    }
    </style>
</head>
<body bgcolor="#FFFFFF" >
  <span class="pagetitle">Comments Made by <%=user.getFullName()%></span><br><br>

<table bgcolor="#CCCCCC" width="100%" align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
    <td bgcolor="#CCCCCC">
    <table bgcolor="#FFFFFF" cellspacing="1" cellpadding="8" border="0" valign="top">
    <tr>
        <td class="listtblcolheader" width="37%" align="center">
            Customer / Project / Task&nbsp;&nbsp;&nbsp;&nbsp;<html:img page="/img/tr_up.gif" width="11" height="11"/>
        </td>
        <td class="listtblcolheader" width="13%" align="left">Date</td>
        <td class="listtblcolheader" width="5%" align="center">Time</td>
        <td class="listtblcolheader" align="left">Comments</td>
    </tr>
    <logic:iterate id="comment" indexId="idx" name="comments" type="com.actimind.actitime.resources.RecordComments" >
    <tr>
        <td class="commentrow"><%=comment.getCustomerName()%> / <%=comment.getProjectName()%> / <%=comment.getTaskName()%></td>
        <td class="commentrow" nowrap="1"><%=TimeUtils.toString(comment.getRecordDate(), "MMM dd, yyyy")%></td>
        <td class="commentrow" align="center" nowrap="1"><%=TimeUtils.formatWork(comment.getActuals())%></td>
        <td class="commentrow" align="left"><%= StringUtils.encodeNewLineSymbols(StringUtils.encodeHTMLTagMarkers(comment.getComments()))%></td>
    </tr>
    </logic:iterate>
    </table>
    <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="2" border="0" valign="top" width="100%">
<%--    <tr>--%>
<%--        <td bgcolor="#FFFFFF"><html:img page="/img/pixel.gif" align="absmiddle" height="1"/></td>--%>
<%--    </tr>--%>
    <tr>
        <td bgcolor="#FFFFFF"><span class='smallcomment'>Please note that the table above does not list time which has no comments associated.</span></td>
    </tr>
    <tr>
        <td bgcolor="#FFFFFF"><html:img page="/img/pixel.gif" align="absmiddle" height="5"/></td>
    </tr>
    <tr>
        <td align="center" bgcolor="#e8e8e8"><a href="javascript:window.close();">Close Window</a><html:img page="/img/pixel.gif" align="absmiddle" height="20"/></td>
    </tr>
    </table>
    </td>
</tr>
</table>
</body>
</html>
